import Vue from 'vue'
import Router from 'vue-router'
import Home from '../pages/Home'
import Register from '../pages/Register'
import Login from '../pages/Login'
import Account from '@/pages/Account'
import Qcode from '@/pages/Qcode'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home,
	  meta : {istrue:true}
    },
	{
		path : '/home',
		name: 'Home',
		component: Home,
		meta : {istrue:true}
	},
	{
		path : '/register',
		name: 'Register',
		component: Register,
		meta : {istrue:false}
	},
	{
		path : '/login',
		name: 'Logiin',
		component: Login,
		meta : {istrue:false},
		children : [
				{
							path : 'account',
							name : Account,
							component : Account
				},
				{
							path : 'qcode',
							name : Qcode,
							component : Qcode
				}
		]
	}
  ]
})
